import { UserItem } from './userItem';
import { Tag } from './tag';
import { Comment } from './comment';
import { BaseEntity } from './baseEntity';

export class Article extends BaseEntity {
  title!: string;
  degest!: string;
  content!: string;
  category!: string;
  categoryId!: number;
  tagIds!: number[];
  tags!: Tag[];
  likes!: number;
  viewNum!: number;
  postRenderType!: string;
  commentNum!: number;
  coverImg!: string;
  author!: string;
  publishState!: string; //发布状态
  next!: Article;
  prev!: Article;
  tagNames!: [];
}
